package com.mydubbo.demo;

import com.mydubbo.core.MyDubboServiceStarter;
import com.mydubbo.registry.ZookeeperRegistry;
import com.mydubbo.rpc.netty.NettyServer;

public class MainServer {
	
	public static void main(String[] args) throws InterruptedException {
		
		MyDubboServiceStarter starter = MyDubboServiceStarter.getInstance();
		starter.setRegistry(new ZookeeperRegistry());
		starter.setPort(20881);
		starter.setServer(new NettyServer());
		starter.addBean(new UserServiceImpl());
		starter.init();
		
	}

}
